import React, { FC } from 'react';
import { ReactShape } from '@antv/x6-react-shape';

interface IProps {
  node?: ReactShape;
  name: string;
  message: string;
}

const MyComponent: FC<IProps> = ({ name, message, node }) => {
  return (
    <div className="MyComponent-rect">
      <img
        style={{ width: 36, height: 36 }}
        src="https://console.tenxcloud.com/app-stack/designer/svg/Service.svg"
      />
      <div className="text1">{name}</div>
      <div className="text2">{message}</div>
    </div>
  );
};

export default MyComponent;
